package com.searchbyesandhbase.service;

import com.searchbyesandhbase.entity.doc.ArticleDoc;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @author LJK
 * @description
 * @date 2024/10/27
 */
public interface ArticleService {
    void addArticleIndex(ArticleDoc article);

    void addArticleRowKeyAndCache(List<ArticleDoc> list);

    void addArticlesIndex(List<ArticleDoc> list);

    ArticleDoc getOneByIndex(Integer id);

    Map<String,Object> searchByKeyword(String keyword, int page, int size);

    Map<String, String> getOneByRowKey(String rowKey) throws IOException;
}
